package com.xmg.shop.api.domain;

import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.Date;

@Setter
@Getter
public class Product extends BaseDomain {
    private Date createdDate;
    private Date lastModifiedDate;
    private int version;
    private Catalog catalog;
    private Brand brand;
    private String name;
    private String keyword;
    private String code;
    private String image;
    private BigDecimal marketPrice;
    private BigDecimal basePrice;
    private Long mods;
    private String impressions;

    public String getMarketPrice() {
        return this.marketPrice.toString();
    }

    public String getBasePrice() {
        return this.basePrice.toString();
    }

    public String getCatalogName() {
        return catalog.getName();
    }

    public String getBrandName() {
        return brand.getChineseName();
    }
}